package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysObjectMapper;
import com.ruoyi.system.domain.SysObject;
import com.ruoyi.system.service.ISysObjectService;

/**
 * 物品总览Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class SysObjectServiceImpl implements ISysObjectService 
{
    @Autowired
    private SysObjectMapper sysObjectMapper;

    /**
     * 查询物品总览
     * 
     * @param objectId 物品总览主键
     * @return 物品总览
     */
    @Override
    public SysObject selectSysObjectByObjectId(Long objectId)
    {
        return sysObjectMapper.selectSysObjectByObjectId(objectId);
    }

    /**
     * 查询物品总览列表
     * 
     * @param sysObject 物品总览
     * @return 物品总览
     */
    @Override
    public List<SysObject> selectSysObjectList(SysObject sysObject)
    {
        return sysObjectMapper.selectSysObjectList(sysObject);
    }

    /**
     * 新增物品总览
     * 
     * @param sysObject 物品总览
     * @return 结果
     */
    @Override
    public int insertSysObject(SysObject sysObject)
    {
        return sysObjectMapper.insertSysObject(sysObject);
    }

    /**
     * 修改物品总览
     * 
     * @param sysObject 物品总览
     * @return 结果
     */
    @Override
    public int updateSysObject(SysObject sysObject)
    {
        return sysObjectMapper.updateSysObject(sysObject);
    }

    /**
     * 批量删除物品总览
     * 
     * @param objectIds 需要删除的物品总览主键
     * @return 结果
     */
    @Override
    public int deleteSysObjectByObjectIds(Long[] objectIds)
    {
        return sysObjectMapper.deleteSysObjectByObjectIds(objectIds);
    }

    /**
     * 删除物品总览信息
     * 
     * @param objectId 物品总览主键
     * @return 结果
     */
    @Override
    public int deleteSysObjectByObjectId(Long objectId)
    {
        return sysObjectMapper.deleteSysObjectByObjectId(objectId);
    }
}
